var arr = [12, 34, 32, 89, 4];

const getMinNum = arr => arr.reduce((total, current) => Math.min(total, current), arr[0])

console.log(getMinNum(arr))

// 4